@(message: String)(implicit session:Session)
@import views.html.dingtalk._
@main(message,styles=styles,scripts=js,modals=modals) {

<ion-side-menus>

    <!-- 中心内容 -->
    <ion-side-menu-content>
        <ion-header-bar class="bar-dark">
            <h1 class="title">中心内容<span id="username"></span></h1>
        </ion-header-bar>
        <ion-content>
            <p>我的第一个 ionic 应用。</p>
        </ion-content>
    </ion-side-menu-content>

    <!-- 左侧菜单 -->
    <ion-side-menu side="left">
        <ion-header-bar class="bar-dark">
            <h1 class="title">左侧菜单</h1>
        </ion-header-bar>
    </ion-side-menu>
    <p>菜单1</p>
</ion-side-menus>


}
@styles={
<link href="https://cdn.staticfile.org/ionic/1.3.2/css/ionic.css" rel="stylesheet">
<script src="https://cdn.staticfile.org/ionic/1.3.2/js/ionic.bundle.min.js"></script>
}
@js={
<script src="https://www.runoob.com/static/ionic/js/app.js"></script>
<script src="cordova.js"></script>

}
@modals = {
function dingtalkLogin{
dd.ready(function () {
dd.runtime.permission.requestAuthCode({
corpId: "ding069d4eb6a1d2cc11", // 企业id
onSuccess: function (info) {
code = info.code // 通过该免登授权码可以获取用户身份
$.get({
url: dingTalkAuth.url,
data: { "code": code },
dataType: 'text',
success: function (data) {
console.log(data);
//alert("数据: \n" + data + "\n状态: " + status);
document.getElementById('username').innerHTML = '<' + data + '>';
var testvalue = document.getElementById('testvalue').value
alert(testvalue)
window.top.location.href = "/dingtalkmobile";
}
});

}
});
});}
}